using Project.Views.Abstractions;
using UnityEngine;

namespace Project.Views
{
    [RequireComponent(typeof(CanvasGroup))]
    public class HelpPanelView : ViewBase 
    {
        private CanvasGroup _canvasGroup;

        public void Initialize()
        {
            _canvasGroup = this.GetComponent<CanvasGroup>();
        }

        public void Show()
        {
            _canvasGroup.alpha = 1;
            _canvasGroup.blocksRaycasts = true;
        }

        public void Hide()
        {
            _canvasGroup.alpha = 0;
            _canvasGroup.blocksRaycasts = false;
        }
    }
}
